package com.cskaoyan.controller;


import com.cskaoyan.bean.MarketBrand;
import com.cskaoyan.bean.common.BaseRespVo;
import com.cskaoyan.bean.common.CommonData;
import com.cskaoyan.service.AdminBrandService;
import com.cskaoyan.service.AdminBrandServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

@RestController
@RequestMapping("wx/brand")
public class BrandController {

    @Autowired
    AdminBrandService adminBrandService;

    @RequestMapping("list")
    public BaseRespVo list(Integer page,Integer limit) throws IOException {



        CommonData<MarketBrand> data = adminBrandService.query(page, limit);
       return BaseRespVo.ok(data);
}
}
